// This whole file is
// https://github.com/richleland/pygments-css/blob/master/github.css
// and
// https://github.com/alexpeattie/alexpeattie.com/blob/master/source/assets/css/global/code.scss
// With `variables` being inlined

.codehilite .hll {
  background-color: #ffffcc;
}
.codehilite .c {
  color: #999988;
  font-style: italic;
} /* Comment */
.codehilite .err {
  color: #a61717;
  background-color: #e3d2d2;
} /* Error */
.codehilite .k {
  color: #000000;
  font-weight: bold;
} /* Keyword */
.codehilite .o {
  color: #000000;
  font-weight: bold;
} /* Operator */
.codehilite .cm {
  color: #999988;
  font-style: italic;
} /* Comment.Multiline */
.codehilite .cp {
  color: #999999;
  font-weight: bold;
  font-style: italic;
} /* Comment.Preproc */
.codehilite .c1 {
  color: #999988;
  font-style: italic;
} /* Comment.Single */
.codehilite .cs {
  color: #999999;
  font-weight: bold;
  font-style: italic;
} /* Comment.Special */
.codehilite .gd {
  color: #000000;
  background-color: #ffdddd;
} /* Generic.Deleted */
.codehilite .ge {
  color: #000000;
  font-style: italic;
} /* Generic.Emph */
.codehilite .gr {
  color: #aa0000;
} /* Generic.Error */
.codehilite .gh {
  color: #999999;
} /* Generic.Heading */
.codehilite .gi {
  color: #000000;
  background-color: #ddffdd;
} /* Generic.Inserted */
.codehilite .go {
  color: #888888;
} /* Generic.Output */
.codehilite .gp {
  color: #555555;
} /* Generic.Prompt */
.codehilite .gs {
  font-weight: bold;
} /* Generic.Strong */
.codehilite .gu {
  color: #aaaaaa;
} /* Generic.Subheading */
.codehilite .gt {
  color: #aa0000;
} /* Generic.Traceback */
.codehilite .kc {
  color: #000000;
  font-weight: bold;
} /* Keyword.Constant */
.codehilite .kd {
  color: #000000;
  font-weight: bold;
} /* Keyword.Declaration */
.codehilite .kn {
  color: #000000;
  font-weight: bold;
} /* Keyword.Namespace */
.codehilite .kp {
  color: #000000;
  font-weight: bold;
} /* Keyword.Pseudo */
.codehilite .kr {
  color: #000000;
  font-weight: bold;
} /* Keyword.Reserved */
.codehilite .kt {
  color: #445588;
  font-weight: bold;
} /* Keyword.Type */
.codehilite .m {
  color: #009999;
} /* Literal.Number */
.codehilite .s {
  color: #d01040;
} /* Literal.String */
.codehilite .na {
  color: #008080;
} /* Name.Attribute */
.codehilite .nb {
  color: #0086b3;
} /* Name.Builtin */
.codehilite .nc {
  color: #445588;
  font-weight: bold;
} /* Name.Class */
.codehilite .no {
  color: #008080;
} /* Name.Constant */
.codehilite .nd {
  color: #3c5d5d;
  font-weight: bold;
} /* Name.Decorator */
.codehilite .ni {
  color: #800080;
} /* Name.Entity */
.codehilite .ne {
  color: #990000;
  font-weight: bold;
} /* Name.Exception */
.codehilite .nf {
  color: #990000;
  font-weight: bold;
} /* Name.Function */
.codehilite .nl {
  color: #990000;
  font-weight: bold;
} /* Name.Label */
.codehilite .nn {
  color: #555555;
} /* Name.Namespace */
.codehilite .nt {
  color: #000080;
} /* Name.Tag */
.codehilite .nv {
  color: #008080;
} /* Name.Variable */
.codehilite .ow {
  color: #000000;
  font-weight: bold;
} /* Operator.Word */
.codehilite .w {
  color: #bbbbbb;
} /* Text.Whitespace */
.codehilite .mf {
  color: #009999;
} /* Literal.Number.Float */
.codehilite .mh {
  color: #009999;
} /* Literal.Number.Hex */
.codehilite .mi {
  color: #009999;
} /* Literal.Number.Integer */
.codehilite .mo {
  color: #009999;
} /* Literal.Number.Oct */
.codehilite .sb {
  color: #d01040;
} /* Literal.String.Backtick */
.codehilite .sc {
  color: #d01040;
} /* Literal.String.Char */
.codehilite .sd {
  color: #d01040;
} /* Literal.String.Doc */
.codehilite .s2 {
  color: #d01040;
} /* Literal.String.Double */
.codehilite .se {
  color: #d01040;
} /* Literal.String.Escape */
.codehilite .sh {
  color: #d01040;
} /* Literal.String.Heredoc */
.codehilite .si {
  color: #d01040;
} /* Literal.String.Interpol */
.codehilite .sx {
  color: #d01040;
} /* Literal.String.Other */
.codehilite .sr {
  color: #009926;
} /* Literal.String.Regex */
.codehilite .s1 {
  color: #d01040;
} /* Literal.String.Single */
.codehilite .ss {
  color: #990073;
} /* Literal.String.Symbol */
.codehilite .bp {
  color: #999999;
} /* Name.Builtin.Pseudo */
.codehilite .vc {
  color: #008080;
} /* Name.Variable.Class */
.codehilite .vg {
  color: #008080;
} /* Name.Variable.Global */
.codehilite .vi {
  color: #008080;
} /* Name.Variable.Instance */
.codehilite .il {
  color: #009999;
} /* Literal.Number.Integer.Long */

.codehilite {
  margin: 2em 0 2.8em;

  table,
  tbody {
    display: block;
    width: 100%;
  }

  td {
    border: 1px solid #dee;
  }

  tr {
    display: flex;
    width: 100%;
  }

  .code {
    flex: 1 0 0px;
    margin-left: -1px;

    // firefox again
    display: block;
    max-width: calc(100% - 2em);
  }
}

pre {
  margin: 0.5em 0;
  line-height: 23px;
  white-space: pre;
  overflow-x: auto;
  word-break: inherit;
  word-wrap: inherit;
}

.code pre {
  padding: 0 10px;
}

.codehilite .gl {
  background: #fafafa;
  border-right: 1px solid #dddddd;
  color: #cccccc;
  user-select: none;
  padding: 0 5px;
  overflow: hidden;
}

p code,
li code,
td code,
span > code {
  color: #666666;
  background: #fafafa;
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px dotted #cccccc;
  margin: 0 4px;
  font-size: 90%;
  word-wrap: break-word;
}

a code {
  color: inherit;
  text-decoration: underline;
  margin: 0 -1px;
  padding: 3px 10px;
}

#json-response {
  margin: 2em auto 2em;
  max-width: 940px;
  padding: 1em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 0;

  #json-response-text {
    unicode-bidi: embed;
    font-family: monospace;
    white-space: pre;
  }

  #json-response-timing {
    position: absolute;
    bottom: 0.5em;
    right: 0.5em;
  }

  &:not(.display) {
    visibility: hidden;
  }

  &.display {
    visibility: visible;
    @extend %animated;
    @extend %fadeInDown;
  }
}
